package com.itheima.dao.system;

import com.itheima.domain.system.Permission;

import java.util.List;
import java.util.Map;

public interface PermissionDao {
    int save(Permission permission);

    int delete(Permission permission);

    int update(Permission permission);

    Permission findById(String id);

    List<Permission> findAll();

    void deleteById(String id);

    List<Permission> findByMethod(String methodName);

    List<Map> findAuthorDataByRoleId(String roleId);


    List<Permission> findPermissionByUserId(String id);
}
